package m1.server.config.component.componentInterface;

import m2.component.ComponentInterface;
import m2.service.RequiredService;

public class ConnectionManagerInterfaceRequired extends ComponentInterface{

	/**
	 * 
	 */
	public ConnectionManagerInterfaceRequired(){
		
		//********externalSocketService********
		RequiredService externalSocketService = new RequiredService();
		externalSocketService.setNameService("externalSocketService");
		setService(externalSocketService);		
		
		//********securityCheckReceiveService********
		RequiredService securityCheckReceiveService = new RequiredService();
		securityCheckReceiveService.setNameService("securityCheckReceiveService");
		setService(securityCheckReceiveService);
				
		//********dbQueryReceiveService********
		RequiredService dbQueryReceiveService = new RequiredService();
		dbQueryReceiveService.setNameService("dbQueryReceiveService");
		setService(dbQueryReceiveService);		
	}

	@Override
	/**
	 * 
	 */
	public void buildService() {
		serviceUsePorts("externalSocketService", "ExternalSocket");
		serviceUsePorts("securityCheckReceiveService", "SecurityCheckReceive");
		serviceUsePorts("dbQueryReceiveService", "DBQueryReceive");
	}
}
